<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>

<head>
<base href="${pageContext.request.contextPath}/" />
<title>襄阳蓝芯智能化办公系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="view/js/bootstrap-3.3.5/css/bootstrap.css" rel="stylesheet">
<style>
/*定义类名为.thead-blue的样式*/
.thead-blue {
	color: #fff;
	font-weight: bold;
	background-color: #337ab7;
}
</style>
</head>
<body>

	<div class="panel panel-primary">
		<table class="table table-bordered table-hover">
			<thead>
				<tr class="thead-blue">
					<td colspan="4">员工详情</td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="col-md-2"><label>员工编号</label></td>
					<td class="col-md-4">${emp.oid}</td>
					<td class="col-md-2"><label>员工姓名</label></td>
					<td class="col-md-4">${emp.empName }</td>
				</tr>
				<tr>
					<td><label>员工性别</label></td>
					<td>${emp.sex=="M"?"男":"女"}</td>
					<td><label>所属部门</label></td>
					<td>${emp.dept.deptName}</td>
				</tr>
				<tr>
					<td><label>部门职位</label></td>
					<td>${emp.basic.name}</td>
					<td><label>出生日期</label></td>
					<td>${emp.birthday}</td>
				</tr>
				
				<tr>
					<td><label>员工学历</label></td>
					<td>${emp.education.name}</td>
					<td><label>毕业学校</label></td>
					<td>${emp.school}</td>
				</tr>
				<tr>
					<td><label>所学专业</label></td>
					<td>${emp.major}</td>
					<td><label>联系电话</label></td>
					<td>${emp.phone}</td>
				</tr>
				<tr>
					<td><label>员工状态</label></td>
					<td>${emp.state=="Y"?"在职":"离职"}</td>
				</tr>
				<tr>
					<td><label>登录账号</label></td>
					<td colspan="3">${emp.account.username}</td>
				</tr>
				<tr class="thead-blue">
					<td colspan="4">工作信息</td>
				</tr>
				<tr>
					<td><label>参加工作时间</label></td>
					<td>${emp.jobinfo.workDate}</td>
					<td><label>加入公司时间</label></td>
					<td>${emp.jobinfo.joinDate }</td>
				</tr>
				<tr>
					<td><label>调入档案时间</label></td>
					<td>${emp.jobinfo.fileDate}</td>
					<td><label>合同开始时间</label></td>
					<td>${emp.jobinfo.contractStart }</td>
				</tr>
				<tr>
					<td><label>合同结束时间</label></td>
					<td>${emp.jobinfo.contractEnd}</td>
					<td><label>担保签订时间</label></td>
					<td>${emp.jobinfo.assureDate }</td>
				</tr>
				<tr>
					<td><label>保密协议签订时间</label></td>
					<td colspan="3">${emp.jobinfo.secretDate }</td>
				</tr>
				<c:forEach items="${emp.expriences }" var="exp" varStatus="i">
				<tr class="thead-blue">
					<td colspan="4">工作经历${i.count }</td>
				</tr>
				<tr>
					<td><label>开始时间</label></td>
					<td>${exp.startDate}</td>
					<td><label>所在公司</label></td>
					<td>${exp.companyName}</td>
				</tr>
				<tr>
					<td><label>结束时间</label></td>
					<td>${exp.endDate}</td>
					<td><label>所在部门</label></td>
					<td>${exp.deptName }</td>
				</tr>
				<tr>
					<td><label>证明人</label></td>
					<td>${exp.proofer }</td>
					<td><label>所在职位</label></td>
					<td>${exp.jobName}</td>
				</tr>
				<tr>
					<td><label>证明人电话</label></td>
					<td colspan="3">${exp.phone }</td>
				</tr>
				<tr>
					<td><label>工作描述</label></td>
					<td colspan="3">${exp.description}</td>
				</tr>
				</c:forEach>
				<tr>
					<td colspan="4" align="center">
						<a type="button" href="javascript:history.back()" class="btn btn-info">返回</a>
					</td>
				</tr>
			</tbody>
		</table>
	</div>

</body>
</html>